package com.kedi.evergreenschoolcenter.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kedi.evergreenschoolcenter.read.dao.mapper.ReadTeachersignMapper;
import com.kedi.evergreenschoolcenter.service.TeachersignService;
import com.kedi.evergreenschoolcenter.writer.dao.mapper.WriterTeachersignMapper;

/**
 * 
 *
 * @ClassName	CourseRegClassService
 * @author: 	陈辽逊
 * @date: 		2019/7/26	11:01
 */
@Service
public class TeachersignServiceImpl implements TeachersignService{

	@Autowired
	ReadTeachersignMapper readTeachersignMapper;
	@Autowired
	WriterTeachersignMapper writerTeachersignMapper;
	/**
	 * 				根据id获取对应类型返回报名电话
	 * @param id
	 * @return		gettteachersignphone
	 */
	@Override
	public int gettteachersignphone(int id) {
		return readTeachersignMapper.gettteachersignphone(id);
	}
	
	/**
	 * 				 创建特长
	 * @param		 map
	 * @return		 insertteachersign
	 */
	@Override
	public int insertteachersign(Map map) {
		return writerTeachersignMapper.insertteachersign(map);
	}

}
